//
//  HMProfileTableViewController.swift
//  WeiBoXR
//
//  Created by acer on 16/9/19.
//  Copyright © 2016年 acer. All rights reserved.
//

import UIKit

class HMProfileTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        setupUI()
        if isLogin {
            
            addRightBtn()
        }else {
            visitorView?.updataVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")

        }
    }
    
    private func addRightBtn() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushBtnClick))
    }
    
    
    func pushBtnClick() {
        
        let testVC = HMTestViewController()
        navigationController?.pushViewController(testVC, animated: true)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
//    private func setupUI() {
//        
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登陆")
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册")
//    }
    
}
